<template>
  <el-select v-bind="$attrs" :clearable="$attrs.clearable || true">
    <el-option v-if="refrash" v-for="item in data" :value="item[props1.id]" :label="item[props1.label]" :key="item[props1.id]">
    </el-option>
  </el-select>
</template>

<script setup>
  import { ref, reactive,watch } from 'vue'
  const { proxy } = getCurrentInstance();
  const { busi_sub_filetype } = proxy.useDict("busi_sub_filetype");
  const props = defineProps({
    data:{
      type: Array,
      default: () => [],
    },
    props1:{
      type:Object,
      default:{
        id:'id',
        label:'label'
      }
    },
    refrash:{
      type:Boolean,
      default:true,
    },
  })

  watch(
	() => props.data,
	(newValue, oldValue) => {
  },
	{ immediate: true, deep: true }
);
</script>


<style lang='less' scoped>

</style>